/** @format */

import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import { createStackNavigator } from "react-navigation";
import FlatListDemo from "./pages/FlatListDemo";
import SwipeableFlatListDemo from "./pages/SwipeableFlatListDemo";
const AppRoot = createStackNavigator({
    App:{
        screen:App,
    },
    FlatListDemo:{
        screen:FlatListDemo,
        navigationOptions:{
            title:"FlatListDemo",
        }
    },
    SwipeableFlatListDemo:{
        screen:SwipeableFlatListDemo,
        navigationOptions:{
            title:"SwipeableFlatListDemo",
        }
    }
});
AppRegistry.registerComponent(appName, () => AppRoot);
